//
//  UserInterface.m
//  LoveHealth
//
//  Created by 陈永坤 on 14-9-18.
//  Copyright (c) 2014年 lanou. All rights reserved.
//

#import "HandleUserInterface.h"


#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
blue:((float)(rgbValue & 0xFF))/255.0 \
alpha:1.0]

@implementation HandleUserInterface

//重新渲染图片
+ (UIImage *)handleImage:(NSString * )imageName
{
    UIImage * image = [UIImage imageNamed:imageName];
    return [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
}

+(UIColor *)getCommonColor
{
    UIColor *  color = UIColorFromRGB(0x00bb9c);
    return color;
}
@end
